<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <style>
        th,td{
            width: 2000px;
        }

    </style>
</head>
<body>
<tr>
    <a href="{:url('User/log')}">登录</a>
</tr>
<tr>
    <a href="{:url('User/reg')}">注册</a>
</tr>
<tr>
    <a href="{:url('User/esc')}">退出登录</a>
</tr>
<form action="{:url('Message/select')}" method="POST">
    <p><input type="text" name="content"></p>
    <p><input type="submit" value="搜索"></p>
</form>
<div>
    <table border="1">
    	<tr>
        	<td>编号</td>
            <td>发布人</td>
            <td>内容</td>
            <td>发布日期</td>
            <td>操作</td>
        </tr>
        {volist name='data' id='vo'}
        <tr>
            <th>{$vo.id}</th>
            <th>{$vo.username}</th>
            <th>{$vo.content}</th>
            <th>{$vo.create_time}</th>
            <th>
                <a href="">修改</a>
                <a href="">删除</a>
            </th>
        </tr>
        {/volist}
        <tr>
            <a href="{:url('Message/addym')}">发表留言</a>
        </tr>

        <tr>{$data|raw}</tr>
</div>

</body>
</html>
